package com.tongxin.van.frameworkcanary.http.dialog;

import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.support.v7.app.AppCompatDialog;
import android.view.Window;

import com.tongxin.van.frameworkcanary.R;

/**
 *
 * author: VanyLiu
 * email: 13212674795@163.com
 * description:登录加载Dialog
 *
**/

public class LoadingDialog extends AppCompatDialog {

    public LoadingDialog(Context context) {
        super(context);
        //去掉标题栏（兼容5.0）
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        //去掉默认背景
        getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));

        setContentView(R.layout.dialog_loading);
    }
}
